import request from "../../utils/request.js";
//获取主机拓扑管理数据
export const getTopologyListApi = () => {
  return request({
    method: "get", //请求方式
    url: "/topology/list", //请求地址
  });
};
//构建主机拓扑联系
export const getTopologyBuildApi = (data) => {
  return request({
    method: "post", //请求方式
    url: "/topology/build",
    data, //请求地址
  });
};
//删除主机拓扑联系
export const getTopologyDelApi = (id) => {
  return request({
    method: "delete", //请求方式
    url: "/topology/del/" + id, //请求地址
  });
};
//获取所有主机拓扑关联数据
export const getTopologyHostApi = () => {
  return request({
    method: "get", //请求方式
    url: "/topology/host", //请求地址
  });
};
